<?php

    require('db_connection.php');
    $query = "SELECT * FROM tblnews WHERE newsID = '$newsID'";
    $result = mysql_query($query);
    $num = 1;
    $libctr= mysql_num_rows($result);
?>
<!doctype html public "-//W3C//DTD HTML 4.01//EN">


<html>

   <head>
      <title>La Union Online Library System -- News</title>
      <meta http-equiv='generator' content='PHP Designer 2005' />
      <style type="text/css">
        @import url(style.css);
      </style>
   </head>
   <body>
       <table  width='80%' align='center' cellspacing='0' cellpadding='0'>
            <tr ><td class='outerframe'>
                <table width='100%'>
                <tr>
                    <td width='100%' colspan='2'>
                    <img src ='images/banner.jpg'></td></tr>
                <tr>
                    <td colspan='3' class='login' ><?php require('loginout.php'); ?></td></tr>
                <tr>
                    <td width='20%' class='menu' valign='top' ><?php require('menu.php'); ?></td>
                    <td class='content' width='80%' background ='images/background.jpg' valign='top'>
                    <?php
                                    while($row=mysql_fetch_array($result))
                                    {
                                      $title = $row['title'];
                                      $content = $row['content'];
                                    }
                                    echo "<p class='titles' align='top'> $title</p>";
                                    ?>
                        
                        <table width='100%'>
                            </table>

                                <table width='100%'><tr><td>  </td></tr></table>
                                <table  cellpadding='0'width='100%'>
                               <tr ><td colspan='2'  class='homepage' width='100%'></td></tr>
                                 <?php
                                   
                                      echo"<tr><td class='news'>";
                                      echo $content;
                                      echo"</td></tr>";
                                      echo"<tr><td > </td></tr><table";
                                    ?>
                              
                        </table></td></tr>

                <tr><td colspan='2' class='outerframe2'><?php require('contact.php'); ?></td></tr>
                </table>
        </td></tr></table>
    </body>
</html>
<?php
require('expire.php');
?>

